import { axios } from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/pc/category/selectPage/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function save(parameter) {
  return axios({
    url: '/pc/category/save',
    method: 'post',
    data: parameter
  })
}

export function del(parameter) {
  return axios({
    url: '/pc/category/delete/' + parameter,
    method: 'get'
  })
}

export function selectAllCategory(parameter) {
  return axios({
    url: '/pc/category/selectAll?companyId=' + parameter,
    method: 'get',
  })
}

export function deleteBatch(parameter) {
  return axios({
    url: '/pc/category/deleteBatch',
    method: 'post',
    data:{
      'catagorys':parameter
    }
  })
}



